const seq = require('../seq')
const Sequelize = require('sequelize')

const Blog = seq.define('blog', {
  userId: {
    type: Sequelize.INTEGER,
    allowNull: false,
    comment: '用户id'
  },
  content: {
    type: Sequelize.TEXT,
    comment: '微博内容'
  },
  image: {
    type: Sequelize.STRING,
    comment: '图片地址'
  },
})

module.exports = Blog